<template>
  <div>
<!--    <button :v-if="Authorization" type="button" @click="logout">登出</button>-->
<!--    <router-view/>-->
    <el-container>
      <el-header v-if="false" style="text-align: center;line-height: 50px;height: 50px">欢迎使用在线教育系统平台服务</el-header>
      <el-container>
        <side-bar/>
        <el-container>
          <el-main style="padding: 0">
            <crumbs/>
            <router-view/>
          </el-main>
          <el-footer v-if="false">Footer</el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
  import SideBar from "./submodules/SideBar";
  import Crumbs from "./submodules/Crumbs";
  export default {
    name: "index",
    components: {Crumbs, SideBar},
    data(){
      return{
        Authorization: true
      }
    },
    methods:{
      logout(){
        this.$store.commit('removeToken')
        this.$router.replace('/login')
      }
    }
  }
</script>

<style scoped>

</style>
